package org.kzwl.entity.web;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cu_news")
public class News {

    @TableId(value = "cu_news_id",type = IdType.AUTO)
    private Integer cuNewsId;

    @TableField("cu_news_title")
    private String cuNewsTitle;

    /**
     * 来源
     */
    @TableField("cu_news_source")
    private String cuNewsSource;

    @TableField("cu_news_date")
    private Date cuNewsDate;

    @TableField("cu_news_browse")
    private Long cuNewsBrowse;

    /**
     * 内容
     */
    @TableField("cu_news_content")
    private String cuNewsContent;

    private Integer cuUserId;

    private Integer cuCategoryId;

    /**
     * 镇馆ID
     */
    private Integer cuTownId;

    /**
     * 封面
     */
    @TableField("cu_news_cover")
    private String cuNewsCover;

}
